package cn.liuding.pethome.basic.base.service;

import cn.liuding.pethome.basic.base.mapper.BaseMapper;
import cn.liuding.pethome.basic.base.query.BaseQuery;
import cn.liuding.pethome.basic.util.PageList;
import cn.liuding.pethome.org.query.DepartmengQuery;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface IBaseService<T> {


    void add(T t);
    void update(T t);
    void delete(Long id);
    T loadById(Long id);
    List<T> loadAll();
    PageList<T> pageList(BaseQuery query);

    void deleteAll(List<Long> ids);
}
